package com.shunya.diskorganizer.tinytypes;

public class ConfigurationValue extends AbstractValueType<String> {

    public static final ConfigurationValue NO_VALUE = configurationValue("no value");
    public static final ConfigurationValue EMPTY_STRING = configurationValue("");

    private ConfigurationValue(String value) {
        super(value);
    }

    public static ConfigurationValue configurationValue(String value) {
        return new ConfigurationValue(value);
    }

    public boolean isEmpty() {
        return EMPTY_STRING.equals(this);
    }

    public boolean isTrue() {
        return Boolean.parseBoolean(value());
    }
}